package MyArray;

import java.io.FilterOutputStream;

public class ArrayDemo4 {
    public static void main(String[] args) {
        //1、整形数组的元素默认值都是0
        int[] arr = new int[10];
        System.out.println(arr[5]);
        System.out.println(arr[4]);
        System.out.println(arr[7]);

        //2、字符数组的元素默认值都是0
        char[] chars = new char[100];
        System.out.println(chars[0]);
        System.out.println(chars[99]);

        //3、浮点型数组的元素默认值都是0.0
        double[] scores = new double[90];
        System.out.println(scores[0]);
        System.out.println(scores[89]);

        //4、布尔类型的数组
        boolean[] chen = new boolean[100];
        System.out.println(chen[0]);
        System.out.println(chen[99]);

        //5、引用类型的数组
        String[] names = new String[90];
        System.out.println(names[0]);
        System.out.println(names[89]);

    }
}
